<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//默认路由
Route::get('/', function () {
    return view('welcome');
});
//第一个路由
Route::get('/hello',function(){
    echo 'hello,welcome use laravel5.6';
});

//后台路由组
Route::group(['namespace' => 'Admin', 'prefix' => 'admin'], function(){
    // 控制器在 "App\Http\Controllers\Admin" 命名空间下
    Route::get('/','IndexController@index');
    Route::get('/index','IndexController@index');
});

